package pers.jason.wppm.auth.web.dao;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pers.jason.wppm.api.entity.auth.Role;

import java.util.Set;

/**
 *
 */
@Mapper
public interface RoleDao {

    /**
     * 通过用户id获取用户的角色
     * @param userId
     * @return
     */
    Set<Role> getRolesByUser(@Param("userId") String userId);
}
